home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: Thu, 25 Jan 1996 12:19:00 GMT
- Organization: Netcom
- Message-ID: <31077335.52859072@nntp.ix.netcom.com>
- References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <SPENCER.96Jan22113215@zorgon.ERA.COM> <4e1nd8$hv0@solutions.solon.com> <3104bfc8.132251392@nntp.ix.netcom.com> <dewar.822407919@schonberg> <3106260f.224013120@nntp.ix.netcom.com> <4e6oj9$o02@news.xmission.com>
- NNTP-Posting-Host: ix-dc9-26.ix.netcom.com
- X-NETCOM-Date: Thu Jan 25 4:18:53 AM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- tknarr@xmission.com ( Todd Knarr ) wrote:
-
- > In <3106260f.224013120@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
- > > When a value with integral type is demoted to a signed integer
- > > with smaller size or an unsigned integer is converted to its
- > > corresponding signed integer, if the value cannot be
- > > represented the result is implementation defined.
- > >
- > >This requires an implementation to convert the integral type. It does
- > >not give it license to take actions not specified by the standard.
- >
- > I think you're reading something into the standard that isn't there. The
- > standard says the implementation must define what it will do, but the
- > standard says nothing whatsoever about *what* definition the implementation
- > must give. The implementation is free to define the result as always
- > producing 0 in this case, or a random number, or causing program
- > termination, or producing nasal demons. That this is so should be
- > obvious, because if the standard dictated what definition the implementation
- > would use then it would not be implementation defined, now would it?
-
- I think you're reading something into my post that isn't there.
-
- What am I reading into the standard that's not there? Nothing in my
- post suggests that defining the result as always 0 is illegal. In
- fact, it is clearly legal.
-
- But the standard does impose some restrictions on the definition. The
- definition must specify that the subject type is converted to the
- object type. It must not produce side-effects.
-
- Please reread my post; I was responding to the statement that the
- definition could be to delete the system disk. That is out of bounds
- for the definition and I said so. I did not say that defining the
- result to be 0 is out of bounds.
-
-
- Michael M Rubenstein
-